﻿@{
    ViewBag.Title = "About Us";
}
<div>Test mode Mobile</div>
<div class="responsive">
    
</div><script type='text/javascript'>
          var isMobile = {
              Android: function() {
                  return navigator.userAgent.match(/Android/i);
              },
              BlackBerry: function() {
                  return navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/BB10/i);
              },
              iOS: function() {
                  return navigator.userAgent.match(/iPhone|iPad|iPod/i);
              },
              Opera: function() {
                  return navigator.userAgent.match(/Opera Mini/i);
              },
              Windows: function() {
                  return navigator.userAgent.match(/IEMobile/i) || navigator.userAgent.match(/WPDesktop/i);
              },
              any: function() {
                  return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
              }
          };

          var isDesktop = !(isMobile.any() && window.innerWidth < 768);

          var LTEIE8 = (document.all && !document.addEventListener);

          $(document).ready(function() {
              $('.responsive').html(navigator.userAgent);
              if (isDesktop) {
                  $('.responsive').html($('.responsive').html() + '+ is mobile');
              }

              if (LTEIE8) {
                  $('.responsive').html($('.responsive').html() + '+ less than IE8');
              }
          });
      </script>